@extends('desktop.template.bootstrap')
@section('content')
<div class="row">
	<main class="col-md-12">
		@foreach($articles as $article)
		<article class="post">
			<header class="entry-header">
				<h1 class="entry-title">
					<a href="{{ url('/articles/'.$article->id) }}">{{ $article->title }}</a>
				</h1>
				<div class="entry-meta">
					<span class="ion-ios-pricetags"> <a href="{{ url('/search?categoryName='.$article->category->name) }}">{{ $article->category->name }}</a></span>
					<span class=ion-android-calendar> <a href="#"><time class="entry-date">{{ $article->created_at->format('Y-m-d h:i') }}</time></a></span>
					<span class="ion-person"> <a href="#">{{ $article->author }}</a></span>
					<span class="ion-ios-chatbubble"> <a href="#">{{ $article->comments->count() }}</a></span>
					<span class="ion-ios-eye"> <a href="#">{{ $article->read }}</a></span>
				</div>
			</header>
			<div class="entry-content clearfix">
				<div>{!! str_limit(strip_tags($article->content), 400) !!}</div>
				<div class="read-more cl-effect-14">
					<a href="{{ url('/articles/'. $article->id) }}" class="more-link">查看详情 <span class="meta-nav">→</span></a>
				</div>
			</div>
		</article>
		@endforeach
		{!! $articles->render() !!}
	</main>
</div>
@stop